package com.zhangln.mountbuzhou.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 推送日志
 * </p>
 *
 * @author sherry
 * @since 2020-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_push_log")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TbPushLogEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    private String pushId;
    private String msgId;
    private String channelId;

    /**
     * 推送内容
     */
    private String msg;

    /**
     * 推送次数
     */
    private Integer times;

    /**
     推送状态 0-未推送
     1-推送成功（未确认）
     2-推送失败
     3-客户端已确认送达
     99-其他
     */
    private Integer status;

    /**
     * 备注
     */
    private String note;

    /**
     * 乐观锁
     */
    private Integer revision;
    private String callBackUrl;


    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    private LocalDateTime updatedTime;


    public static final String ID = "id";

    public static final String PUSH_ID = "push_id";
    public static final String MSG_ID = "msg_id";
    public static final String CHANNEL_ID = "channel_id";

    public static final String MSG = "msg";

    public static final String TIMES = "times";

    public static final String STATUS = "status";

    public static final String NOTE = "note";

    public static final String REVISION = "revision";

    public static final String CREATED_BY = "created_by";

    public static final String CREATED_TIME = "created_time";
    public static final String CALL_BACK_URL = "call_back_url";

    public static final String UPDATED_BY = "updated_by";

    public static final String UPDATED_TIME = "updated_time";

}
